$(function() {
	 $("#query").submit(function(){
		   var name=$("#name").val();
		   var fromschool=$("#fromschool").val();
		   var education=$("#education").val();
		   var marketType=$("#marketType").val();
		   var classname=$("#classname").val();
		   var phone=$("#phone").val();
		   var QQ=$("#QQ").val();
		   var character=$("#character").val();
		   var remarks=$("#remarks").val();
		   var intention=$("#intention").val();
           if(null==name||""==name){
			   alert("请填写学生姓名");
			   return false;
		   }else if(null==fromschool||""==fromschool){
			   alert("请填写院校");
			   return false;
		   }else if(null==education||""==education){
			   alert("请填写学历");
			   return false;
		   }else if(null==marketType||""==marketType){
			   alert("请填写市场类型");
			   return false;
		   }else if(null==classname||""==classname){
			   alert("请填写班级名称");
			   return false;
		   }else if(null==phone||""==phone){
			   alert("请填写电话");
			   return false;
		   }else if(null==QQ||""==QQ){
			   alert("请填写QQ");
			   return false;
		   }else if(null==character||""==character){
			   alert("请填写性格特点");
			   return false;
		   }else if(null==remarks||""==remarks){
			   alert("请填写备注");
			   return false;
		   }else if(null==intention||""==intention){
			   alert("请填写培训意向");
			   return false;
		   }
		   return true;
	   }); 
});
